let houst_id
Page({
  editHouse() {
    wx.navigateTo({
      url: '/house_pkg/pages/form/index?id=' + houst_id,
    })
  },
  // 获取参数
  onLoad({
    id
  }) {
    houst_id = id
    // 根据 id 发送请求得到数据
    this.getHouseDetail(id)
  },
  async getHouseDetail(id) {
    const houseDetail = wx.getStorageSync('roominfo').find(item => item.roomid == id)
    this.setData({
      houseDetail
    })
  },
})